<?php

/**
 * This is the template for generating a module class file.
 */

/* @var $this yii\web\View */
/* @var $generator yii\gii\generators\module\Generator */

$className = $generator->moduleClass;
$pos = strrpos($className, '\\');
$ns = ltrim(substr($className, 0, $pos), '\\');
$className = substr($className, $pos + 1);

echo "<?php\n";
?>

namespace <?= $ns ?>;
use diandi\addons\AddonsModule;

/**
* <?= $generator->moduleID ?> module definition class
*/
class <?= $className ?> extends AddonsModule
{
/**
* {@inheritdoc}
*/
public $controllerNamespace = '<?= $generator->getControllerNamespace() ?>';

/**
* {@inheritdoc}
*/
public function init()
{
parent::init();

// custom initialization code goes here
}
}